package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {
    /**
     * 一对多查询
     * @return
     */
    List<User> findOrdersByUser();

    User findUserById(Integer id);

    Integer insertUser(User user);
}
